package org.example.student_dormitory.dao;

import org.example.student_dormitory.entity.Building;

import java.util.List;

public interface BaseDao {
    //无条件的分页查询
    public <T>List<T> selectAll(int page, int pageSize);
    //有条件查询
    public <T>List<T> selectAll(int page, int pageSize, String key, String value);
    //无条件总数查询
    public int selectCount();
    //有条件总数查询
    public int selectCount(String key, String value);
}
